package cn.kgc.spring01.entity;

import lombok.Data;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/16
 * @Description:
 */

public class Person {

    private String name;
    private Integer id;

    public Person(String name, Integer id) {
        this.name = name;
        this.id = id;
    }

    public Person(){
        System.out.println("person()");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setName()");
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        System.out.println("setId()");
        this.id = id;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
